import React, { useEffect } from 'react';
import styles from './index.less';
import { Checkbox } from 'antd';

export default class extends React.Component {
  render() {
    const { data } = this.props;
    return (
      <div>
        <Checkbox.Group
          options={data.child}
          value={data.value}
          onChange={v => {
            data.value = v;
            this.forceUpdate();
          }}
        />
      </div>
    );
  }
}
